From: Adel Gadllah Date: Sat, 11 Sep 2010 20:41:59 +0000 (+0200) Subject: [appSwitcher] Check the modifier state rather than assuming Meta X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~9760 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=907dd4381b7252646be3cac026fd794ca8b58768;p=gnome-shell.git [appSwitcher] Check the modifier state rather than assuming Meta It isn't guaranteed that Alt+Shift equals to Meta, so we have to check the modifier instead. https://bugzilla.gnome.org/show_bug.cgi?id=629368 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 641739518..6a4ba0c51 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -264,9 +264,10 @@ AltTabPopup.prototype = { }, _keyReleaseEvent : function(actor, event) { - let keysym = event.get_key_symbol(); + let [x, y, mods] = global.get_pointer(); + let state = mods & Clutter.ModifierType.MOD1_MASK; - if (keysym == Clutter.Alt_L || keysym == Clutter.Alt_R || keysym == Clutter.Meta_L || keysym == Clutter.Meta_R) + if (state == 0) this._finish(); return true;